package com.weijx.dishes.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
 * com.weijx.dishes.config.FrontendConfig
 * 描述：
 * on 2025/10/27-上午10:39
 *
 * @author weijx
 */

@Component
public class FrontendConfig {

    @Getter
    @Value("${frontend.domain}")
    private String domain;

    @Value("${frontend.process-page}")
    private String processPage;

    /**
     * 生成订单处理页面的完整URL
     */
    public String getProcessUrl(String orderId) {
        return domain + processPage + "?orderId=" + orderId;
    }
}
